package com.my.wechat.domain.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.sskj.common.tree.Tree;
import com.sskj.core.entity.BaseEntity;

@Entity
@Table(name = "wx_MenuEntity")
@SuppressWarnings("rawtypes")
public class WeChatMenuEntity extends BaseEntity implements Tree {

	private static final long serialVersionUID = 3105004207386571873L;

	@Column
	private String type;

	@Column
	private String name;

	@Column(length = 100)
	private String lableKey;

	@Column(length = 4000)
	private String url;

	@Column
	private String mediaId;

	@Column
	private String appId;

	@Column
	private String pagePath;

	@Column(length = 36)
	private String parentId;

	@Column
	private Integer sortNum = 0;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public Integer getSortNum() {
		return sortNum;
	}

	public void setSortNum(Integer sortNum) {
		this.sortNum = sortNum;
	}

	public Object getData() {

		return this.name;
	}

	public String getUrl() {
		return url;
	}

	public String getMediaId() {
		return mediaId;
	}

	public String getAppId() {
		return appId;
	}

	public String getPagePath() {
		return pagePath;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public void setMediaId(String mediaId) {
		this.mediaId = mediaId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public void setPagePath(String pagePath) {
		this.pagePath = pagePath;
	}

	public String getLableKey() {
		return lableKey;
	}

	public void setLableKey(String lableKey) {
		this.lableKey = lableKey;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Override
	public Integer getSort() {
		return sortNum;
	}

}
